package com.ruoyi.teach.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题目对象 nb_question
 * 
 * @author ruoyi
 * @date 2021-12-08
 */
public class NbQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目ID */
    private Long id;

    /** 创建人ID;老师ID */
    @Excel(name = "创建人ID;老师ID")
    private Long teacherId;

    /** 所属课程ID */
    @Excel(name = "所属课程ID")
    private Long courseId;

    /** 所属课程名称 */
    @Excel(name = "所属课程名称")
    private String courseName;

    /** 题目标题 */
    @Excel(name = "题目标题")
    private String title;

    /** 答案 */
    @Excel(name = "答案")
    private String answer;

    /** 选择题选项 */
    @Excel(name = "选择题选项")
    private String answerOptions;

    /** 题目设计图片 */
    @Excel(name = "题目设计图片")
    private String answerImages;

    /** 答案解析 */
    @Excel(name = "答案解析")
    private String answerKeys;

    /** 分值 */
    @Excel(name = "分值")
    private Long score;

    /** 试题类：0->选择；1->多选；2->判断；3->填空；4->问答 */
    @Excel(name = "试题类：0->选择；1->多选；2->判断；3->填空；4->问答")
    private Long type;

    /** 知识点ID */
    @Excel(name = "知识点ID")
    private String knowledgePointId;

    /** 知识点 */
    @Excel(name = "知识点")
    private String knowledgePointName;

    /** 难度（5个等级）：1;2，3，4，5 */
    @Excel(name = "难度", readConverterExp = "5=个等级")
    private Long difficulty;

    /** 状态;0->正常 1->删除 */
    @Excel(name = "状态;0->正常 1->删除")
    private Long status;

    /** 删除标志（0代表存在;2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTeacherId(Long teacherId) 
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId() 
    {
        return teacherId;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setCourseName(String courseName) 
    {
        this.courseName = courseName;
    }

    public String getCourseName() 
    {
        return courseName;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAnswer(String answer) 
    {
        this.answer = answer;
    }

    public String getAnswer() 
    {
        return answer;
    }
    public void setAnswerOptions(String answerOptions) 
    {
        this.answerOptions = answerOptions;
    }

    public String getAnswerOptions() 
    {
        return answerOptions;
    }
    public void setAnswerImages(String answerImages) 
    {
        this.answerImages = answerImages;
    }

    public String getAnswerImages() 
    {
        return answerImages;
    }
    public void setAnswerKeys(String answerKeys) 
    {
        this.answerKeys = answerKeys;
    }

    public String getAnswerKeys() 
    {
        return answerKeys;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setKnowledgePointId(String knowledgePointId) 
    {
        this.knowledgePointId = knowledgePointId;
    }

    public String getKnowledgePointId() 
    {
        return knowledgePointId;
    }
    public void setKnowledgePointName(String knowledgePointName) 
    {
        this.knowledgePointName = knowledgePointName;
    }

    public String getKnowledgePointName() 
    {
        return knowledgePointName;
    }
    public void setDifficulty(Long difficulty) 
    {
        this.difficulty = difficulty;
    }

    public Long getDifficulty() 
    {
        return difficulty;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teacherId", getTeacherId())
            .append("courseId", getCourseId())
            .append("courseName", getCourseName())
            .append("title", getTitle())
            .append("answer", getAnswer())
            .append("answerOptions", getAnswerOptions())
            .append("answerImages", getAnswerImages())
            .append("answerKeys", getAnswerKeys())
            .append("score", getScore())
            .append("type", getType())
            .append("knowledgePointId", getKnowledgePointId())
            .append("knowledgePointName", getKnowledgePointName())
            .append("difficulty", getDifficulty())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
